<?php
namespace PsiFramework\Classes\Util\Database\Query;

/**
 * PsiFramework
 * Php Simple Framework
 *
 * @author Rémi San
 * @version beta
 */

/**
 * The SqlTable class allows to represent a sql table
 *
 * @package classes.util.xpersist.sql
 */
class SqlTable
{

    protected /*string*/ $_name ;
    protected /*string*/ $_schema ;
    protected /*string*/ $_alias ;

    /**
     * SqlTable constructor
     *
     * @param $name        the name of the table
     * @param $alias    the alias of the table
     */
    public function __construct(
        /*string*/ $name,
        /*string*/ $schema=null,
        /*string*/ $alias = null
    )
    {
        $this->_name = $name ;
        $this->_schema = $schema ;
        $this->_alias = $alias ;
    }

    /**
     * Setter for the member variable $schema
     *
     * @param $schema
     */
    public function setSchema(/*string*/ $schema)
    {
        $this->_schema = $schema ;
    }

    /**
     * Setter for the member variable $alias
     *
     * @param $alias
     */
    public function setAlias(/*string*/ $alias)
    {
        $this->_alias = $alias ;
    }

    /**
     * Getter for the member variable $name
     *
     * @return string
     */
    public function getName()
    {
        return $this->_name ;
    }

    /**
     * Getter for the member variable $schema
     *
     * @return string
     */
    public function getSchema()
    {
        return $this->_schema ;
    }

    /**
     * Getter for the member variable $alias
     *
     * @return string
     */
    public function getAlias()
    {
        return $this->_alias ;
    }

}

